package com.damai.utils.value;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.citywithincity.api.ApiBuildConfig;
import com.citywithincity.db.interfaces.IValueConvert;

class Date2String implements IValueConvert {
	Date2String() {

	}
	@Override
	public Object convert(Object value) {
		if(value==null)return null;
		return new SimpleDateFormat(ApiBuildConfig.DATE_TIME_FORMAT).format((Date)value);
	}

}
